<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="resources/css/jquery-ui-1.8.21.custom.css">
		<script src="resources/js/jquery-1.7.2.min.js"></script>
        <script src="resources/js/jquery-ui-1.8.21.custom.min.js"></script>

</head>
<body>
<div id="cbnuProgressbar"></div>
<button id="up">10%증가</button>

<script type="text/javascript">
	$(function(){
		var progress=$("#cbnuProgressbar");
		progress.progressbar();
		$("#up").click(function(){
			var currentVal = progress.progressbar("value"),
			newVal = currentVal+10;
			progress.progressbar("value",newVal);
			if(!$("#value").length){
				$("<span></span>",{
					text: newVal+"%",
					id:"value",
					css:{
						float:"right",
						marginTop:-28,
						marginRight:10
					}
				}).appendTo(progress);
			}else{
				$("#value").text(newVal+"%");
			}
		});
	});
</script>
</body>
</html>